import {ajaxGetJson} from './ajax';
import $lodash from "lodash";
import qs from "qs";

// 获取对应队列的就诊和候诊的患者-TODO
export const queuePatientAjax = (param) => {
    const filterParam = $lodash.pickBy(param);
    let url = qs.stringify(filterParam);
    return ajaxGetJson(`/Triage/getOneScreenQueueInfo?${url}`, param, "BaseApi", 0);
};

//获取模板的基本信息
export const templateInfoAjax = (param) => {
    const filterParam = $lodash.pickBy(param);
    let url = qs.stringify(filterParam);
    return ajaxGetJson(`/program/selectByPrimaryKey?${url}`, param, "BaseApi3", 0);
};